package org.example.controller;

import org.example.controller.MyInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
    @Configuration
    public class MyWebMvcConfigurer implements WebMvcConfigurer {
        @Override
        public void addInterceptors(InterceptorRegistry registration){
            registration.addInterceptor(new MyInterceptor())
                    .addPathPatterns("/a/*","/s/*","/t/*")
                    .excludePathPatterns("/s/login", "/t/register");
        }
    }

